<h2>Listing newsletters</h2>

<%= link_to("Add a newsletter", new_newsletter_path)%>

<table border=1>
  <thead>
    <tr>
      <th>Id</th>
      <th>Email</th>
      <th>Activated_at</th>
    </tr>
  </thead>
  <tbody>
    <% @newsletters.each do |newsletter| %>
      <tr>
        <td><%=h newsletter.id %></td>
        <td><%= link_to(h(newsletter.email), newsletter) %></td>
        <td><%= newsletter.activated_at %>
      </tr>
    <% end %>
  </tbody>
</table>